<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blogmer Documentation</title>

<style type='text/css' media='all'>@import url('../css/userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../css/userguide.css' />
<link type="text/css" rel="stylesheet" href="../css/SyntaxHighlighter.css"></link>
<script language="javascript" src="../js/shCore.js"></script>
<script language="javascript" src="../js/shBrushXml.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
</head>
<body>
<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"></div></div>
<div id="nav2"><a name="top">&nbsp;</a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Blogmer beta 2</h1></td>
<td id="breadcrumb_right"><a href="table_of_content.html">Table of contents</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
  <p><a href="http://speedovation.org/" >Speedovation</a> &nbsp;&#8250;&nbsp;
      <a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
    Table of contents</p>
  </td>

</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />

<!-- START CONTENT -->
<div id="content">

  <h1>Sample main.php</h1>
  <pre  name="code" class="html"><p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
    &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;<br />
    &lt;head&gt;<br />
    &lt;title&gt;&lt;?=$title?&gt;&lt;/title&gt;<br />
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
    &lt;meta  http-equiv=&quot;description&quot; content=&quot;Free open source &quot; /&gt;<br />
    &lt;meta http-equiv=&quot;keywords&quot; content=&quot;Free,open,source,blog&quot; /&gt;<br />
    &lt;meta http-equiv=&quot;author&quot; content=&quot;Yash Bhardwaj&quot; /&gt;<br />
    &lt;meta name=&quot;robots&quot; content=&quot;index, follow, noarchive&quot; /&gt;<br />
    &lt;meta name=&quot;googlebot&quot; content=&quot;noarchive&quot; /&gt;</p>
  <p>&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?=base_url()?&gt;themes/vectorlover/images/VectorLover.css&quot; type=&quot;text/css&quot; /&gt;</p>
  <p>&lt;/head&gt;</p>
  <p>&lt;body&gt;<br />
    &lt;!-- wrap starts here --&gt;<br />
    &lt;div id=&quot;wrap&quot;&gt;</p>
  <p> &lt;!--header --&gt;<br />
  &lt;div id=&quot;header&quot;&gt; <br />
  <br />
  &lt;h1 id=&quot;logo-text&quot;&gt;&lt;a href=&quot;&lt;?=base_url()?&gt;&quot; title=&quot;&quot;&gt;&lt;?=$this-&gt;session-&gt;userdata('BLOGName')?&gt;&lt;/a&gt;&lt;/h1&gt; <br />
  &lt;p id=&quot;slogan&quot;&gt;&lt;?=$this-&gt;session-&gt;userdata('BLOGTitle')?&gt;&lt;/p&gt; <br />
  <br />
  &lt;div id=&quot;top-menu&quot;&gt;<br />
  &lt;p&gt; &lt;a href=&quot;&lt;?=base_url()?&gt;users/Register&quot;&gt;Register&lt;/a&gt; | 
&lt;a href=&quot;&lt;?=base_url()?&gt;users/Login&quot;&gt;login&lt;/a&gt;&lt;/p&gt;<br />
  &lt;/div&gt; <br />
  <br />
  &lt;!--header ends--&gt; <br />
  &lt;/div&gt;<br />
  <br />
  &lt;!-- navigation starts--&gt; <br />
  &lt;div  id=&quot;nav&quot;&gt;<br />
  &lt;ul&gt;<br />
  &lt;li id=&quot;current&quot;&gt;&lt;a href=&quot;&lt;?=base_url()?&gt;&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
  &lt;?=$pages?&gt;<br />
  &lt;/ul&gt;<br />
  &lt;!-- navigation ends--&gt; <br />
  &lt;/div&gt; <br />
  <br />
  &lt;!-- content starts --&gt;<br />
  &lt;div id=&quot;content&quot;&gt;<br />
  &lt;div id=&quot;sidebar&quot;&gt;<br />
  <br />

  &lt;?php <br />
    echo $search_form;<br />
    echo $categories;<br />
    echo $latest_posts;<br />
    echo $latestcomment;<br />
    echo $archives;<br />
    echo $users;<br />
    echo $tag_clouds; <br />
    echo $calendar;<br />
    ?&gt;<br />
  <br />
  &lt;!-- sidebar ends //if($this-&gt;session-&gt;userdata('GuestView')==1)  --&gt; <br />
  &lt;/div&gt; <br />
  <br />
  &lt;div id=&quot;main&quot;&gt;<br />
  &lt;?php <br />
    switch($where)<br />
    { <br />
    case 'post':  ?&gt;<br />
  <br />
  &lt;!--single post --&gt;<br />
  &lt;h2&gt;&lt;?=$post['title_link']?&gt;&lt;/h2&gt;<br />
  &lt;p class=&quot;post-info&quot;&gt;Posted by &lt;?=$post['author_name']?&gt; | Filed under &lt;?=$post['categories']?&gt; &lt;/p&gt;<br />
  &lt;p&gt;&lt;?=$post['content']?&gt;&lt;/p&gt;<br />
  &lt;p&gt;&lt;?=$post['read_comments']?&gt;&lt;/p&gt;<br />
  &lt;p&gt;&lt;?=$post['comment_form']?&gt;&lt;/p&gt;<br />
  <br />
  &lt;!--loop for posts  --&gt;<br />
  &lt;?php <br />
    break; <br />
    case 'loop': <br />
    for($i=0;$i&lt;count($allposts)-1;$i++) <br />
    { $comments=base_url().'blog/post/'.url_title($allposts[$i]['post_title']).'#comments';<br />
    ?&gt;<br />
  <br />
  <br />
  &lt;h2&gt;&lt;?=$allposts[$i]['title_link'];?&gt;&lt;/h2&gt;<br />
  &lt;p class=&quot;post-info&quot;&gt;Posted by &lt;?=$allposts[$i]['author_name'];?&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Filed under &lt;?=$allposts[$i]['categories'];?&gt; &lt;/p&gt;<br />
  &lt;p&gt;&lt;?=$allposts[$i]['content'];?&gt;&lt;/p&gt;<br />
  &lt;p class=&quot;post-footer&quot;&gt;<br />
  &lt;a href=&quot;&lt;?=$comments?&gt;&quot; class=&quot;comments&quot;&gt;Comments : &lt;?=$allposts[$i]['comment_no'];?&gt;&lt;/a&gt; | <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span class=&quot;date&quot;&gt;&lt;?=$allposts[$i]['date'];?&gt;&lt;/span&gt; <br />
  &lt;/p&gt;<br />
  <br />
  <br />
  &lt;?php	} //end of for loop<br />
    echo $allposts['last'];<br />
  <br />
    break;<br />
    case 'page':    ?&gt;</p>
  <p> &lt;h2&gt;&lt;?=$page['title_link']?&gt;&lt;/h2&gt;<br />
  &lt;p&gt;&lt;?=$page['content']?&gt;&lt;/p&gt;<br />
  <br />
  &lt;?php break;<br />
    case 'single':     ?&gt;</p>
  <p> &lt;p&gt;&lt;?=$content?&gt;&lt;/p&gt;</p>
  <p> &lt;?php break; } ?&gt;<br />
      <br />
      <br />
  &lt;!-- main ends --&gt; <br />
  &lt;/div&gt;<br />
  &lt;!-- content ends--&gt; <br />
  &lt;/div&gt;<br />
  &lt;!-- footer starts --&gt; <br />
  &lt;div id=&quot;footer&quot;&gt;<br />
  <br />
  &lt;p&gt;<br />
    © 2008 Speedovation. All rights reserved.&amp;nbsp;&amp;nbsp; <br />
  <br />
    Powered By : &lt;a href=&quot;http://www.speedovation.org/&quot; target=&quot;_blank&quot;&gt;Blogmer &lt;/a&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
    Design by : &lt;a href=&quot;http://www.styleshout.com/&quot; target=&quot;_blank&quot;&gt;styleshout
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;nbsp;&amp;nbsp;&lt;/a&gt; | &amp;nbsp;&amp;nbsp;<br />
    Valid &lt;a href=&quot;http://validator.w3.org/check?uri=referer&quot; target=&quot;_blank&quot;&gt;XHTML&lt;/a&gt; | <br />
   &lt;a href=&quot;http://jigsaw.w3.org/css-validator/check/referer&quot; target=&quot;_blank&quot;&gt;CSS&lt;/a&gt;  <br />
  &nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt; <br />
  <br />
  &lt;!-- footer ends--&gt;<br />
  &lt;/div&gt;</p>
  <p>&lt;!-- wrap ends here --&gt;<br />
    &lt;/div&gt;</p>
  <p>&lt;/body&gt;<br />
    &lt;/html&gt;<br />
  </p>
  &nbsp;</pre>
</div>
<!-- END CONTENT -->


<div id="footer">
<p><a href="#top">Top of Page</a></p>
<p><a href="http://speedovation.com">Speedovation</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007-2008 &nbsp;&middot;&nbsp; <a href="http://speedovation.org/">Blogmer</a></p></div>
<script language="javascript">
dp.SyntaxHighlighter.ClipboardSwf = '..js/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
</script>

</body>
</html>